package com.gxa.modules.model.entity.book;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 预约挂号表
 * </p>
 *
 * @author zhuiyi
 * @since 2022-11-12 09:47:44
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_book_register")
@ApiModel(value = "BookRegister对象", description = "预约挂号表")
public class BookRegister implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("预约挂号id")
    @TableId(value = "register_id", type = IdType.AUTO)
    private Long registerId;

    @ApiModelProperty("患者姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("就诊卡号")
    @TableField("cardNum")
    private String cardNum;

    @ApiModelProperty("患者id")
    @TableField("patient_id")
    private String patientId;

    @ApiModelProperty("挂号科室")
    @TableField("department")
    private String department;

    @ApiModelProperty("挂号类型")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("挂号费")
    @TableField("fee")
    private Double fee;

    @ApiModelProperty("挂号状态 0-正常  1-已完成 2-取消预约")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("就诊日期")
    @TableField("cure_time")
    private Date cureTime;

    @ApiModelProperty("候诊时间 9:30")
    @TableField("wait_cure_time")
    private String waitCureTime;

    @ApiModelProperty("预约日期")
    @TableField("appoint_time")
    private Date appointTime;

    @ApiModelProperty("医生id")
    @TableField("doctor_id")
    private Long doctorId;

    @ApiModelProperty("医院id")
    @TableField("hospital_id")
    private Long hospitalId;

    @ApiModelProperty("医院园区id")
    @TableField("hospital_part_id")
    private Long hospitalPartId;

    @ApiModelProperty("取消时间")
    @TableField("cancel_time")
    private Date cancelTime;

    @ApiModelProperty("取消原因")
    @TableField("cancel_reason")
    private String cancelReason;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("逻辑删除 0-未删除 1-删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty("身份证号")
    @TableField("id_card")
    private String idCard;

    @ApiModelProperty("电话号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("医生姓名")
    @TableField("doctor_name")
    private String doctorName;

    @ApiModelProperty("科室id")
    @TableField("department_id")
    private String departmentId;

    @ApiModelProperty("排队")
    @TableField("sort_random")
    private Integer sortRandom;


}
